const { execSync } = require('child_process');

console.log('正在安装依赖包...');

try {
  // 安装缺少的依赖
  execSync('npm install js-cookie@3.0.5', { stdio: 'inherit' });
  execSync('npm install nprogress@0.2.0', { stdio: 'inherit' });
  
  console.log('依赖安装完成！');
} catch (error) {
  console.error('安装依赖时出错:', error.message);
}
